package com.moon.common.service;

import com.moon.common.model.entity.UserInterfaceInfo;

/**
* @author chenliang
* @description 针对表【user_interface_info(用户调用接口关系表)】的数据库操作Service
* @createDate 2024-10-14 14:10:33
*/
public interface InnerUserInterfaceInfoService {

    /**
     * 接口调用次数统计、调用次数+1
     *
     * @param userId
     * @param interfaceInfoId
     * @return
     */
    boolean invokeInterfaceInfoCount(long userId, long interfaceInfoId);

    /**
     * 获取用户接口信息
     * @param userId
     * @param interfaceInfoId
     * @return
     */
    UserInterfaceInfo getUserInterfaceInfo(long userId, long interfaceInfoId);

}
